package cn.hwadee.muying.dto;

import cn.hwadee.muying.commons.base.BaseModel;
import com.baomidou.mybatisplus.annotations.TableField;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @创建人 skiner
 * @创建时间 2018/8/6
 * @描述
 */
public class Client {

    private static final long serialVersionUID = 1L;
    /**
     * 客户信息表ID
     */
    private Long id;
    /**
     * 创建时间
     */
    private Timestamp createDate;
    /**
     * 更新时间
     */
    private Timestamp updateDate;
    /**
     * 删除时间
     */
    private Timestamp deleteDate;
    /**
     * 是否被删除，取代sql中判断删除时间datetime为null
     */
    private Boolean valid;
    /**
     * 用户id
     */

    private Long userId;
    /**
     * 推荐职员
     */

    private Long presenterId;
    /**
     * 客户来源
     */

    private String source;
    /**
     * 预产期
     */

    private Date dueDate;

    private String dueDateString;


    /**
     * 需求日期
     */

    private Date demandDate;

    private String demandDateString;
    /**
     * 需求内容
     */


    private String demandContent;
    /**
     * 期望城市
     */

    private String expectedCity;
    /**
     * 是否为老用户
     */

    private Boolean old;

    /**
     * 账号
     */
    private String account;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码(md5加密)
     */
    private String password;
    /**
     * 类型名称
     */
    private String type;
    /**
     * 角色id
     */
    private Long rid;
    /**
     * 机构id
     */
    private Long orgId;

    private String telephone;

    private String address;

    private Date birthday;

    private String birthdayString;

    private String email;



    public String getDueDateString() {
        return dueDateString;
    }

    public void setDueDateString(String dueDateString) {
        this.dueDateString = dueDateString;
    }

    public String getDemandDateString() {
        return demandDateString;
    }

    public void setDemandDateString(String demandDateString) {
        this.demandDateString = demandDateString;
    }

    public String getBirthdayString() {
        return birthdayString;
    }

    public void setBirthdayString(String birthdayString) {
        this.birthdayString = birthdayString;
    }


    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email){
        this.email = email;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    public Timestamp getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Timestamp updateDate) {
        this.updateDate = updateDate;
    }

    public Timestamp getDeleteDate() {
        return deleteDate;
    }

    public void setDeleteDate(Timestamp deleteDate) {
        this.deleteDate = deleteDate;
    }

    public Boolean getValid() {
        return valid;
    }

    public void setValid(Boolean valid) {
        this.valid = valid;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getPresenterId() {
        return presenterId;
    }

    public void setPresenterId(Long presenterId) {
        this.presenterId = presenterId;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Date getDueDate() {
        return dueDate;
    }

    public void setDueDate(Date dueDate) {
        this.dueDate = dueDate;
    }

    public Date getDemandDate() {
        return demandDate;
    }

    public void setDemandDate(Date demandDate) {
        this.demandDate = demandDate;
    }

    public String getDemandContent() {
        return demandContent;
    }

    public void setDemandContent(String demandContent) {
        this.demandContent = demandContent;
    }

    public String getExpectedCity() {
        return expectedCity;
    }

    public void setExpectedCity(String expectedCity) {
        this.expectedCity = expectedCity;
    }

    public Boolean getOld() {
        return old;
    }

    public void setOld(Boolean old) {
        this.old = old;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getRid() {
        return rid;
    }

    public void setRid(Long rid) {
        this.rid = rid;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public static final String USER_ID = "user_id";

    public static final String PRESENTER_ID = "presenter_id";

    public static final String SOURCE = "source";

    public static final String DUE_DATE = "due_date";

    public static final String DEMAND_DATE = "demand_date";

    public static final String DEMAND_CONTENT = "demand_content";

    public static final String EXPECTED_CITY = "expected_city";

    public static final String OLD = "old";

    public static final String OPENID = "open_id";

    public static final String ORGID = "org_id";

    @Override
    public String toString() {
        return "Client{" +
                "id=" + id +
                ", createDate=" + createDate +
                ", updateDate=" + updateDate +
                ", deleteDate=" + deleteDate +
                ", valid=" + valid +
                ", userId=" + userId +
                ", presenterId=" + presenterId +
                ", source='" + source + '\'' +
                ", dueDate=" + dueDate +
                ", dueDateString='" + dueDateString + '\'' +
                ", demandDate=" + demandDate +
                ", demandDateString='" + demandDateString + '\'' +
                ", demandContent='" + demandContent + '\'' +
                ", expectedCity='" + expectedCity + '\'' +
                ", old=" + old +
                ", account='" + account + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", type='" + type + '\'' +
                ", rid=" + rid +
                ", orgId=" + orgId +
                ", telephone='" + telephone + '\'' +
                ", address='" + address + '\'' +
                ", birthday=" + birthday +
                ", birthdayString='" + birthdayString + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}
